
sudo apt update
sudo apt install curl
sudo apt install zsh
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cd ~
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git .zsh-syntax-highlighting
echo "source ${(q-)PWD}/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ./.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# 自动补全
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "plugins=(zsh-autosuggestions)" >> ~/.zshrc     #在 plugins=(git)下方添加 plugins=(zsh-autosuggestions)
source ~/.zshrc